using TaskKernel.Domain.Services.Role;

namespace TaskKernel.Domain.Services.Action
{
    public class TaskServiceByRoleInTask : TaskServiceByRoleInDepartment
    {
        public TaskServiceByRoleInTask(ITaskAction taskAction, Task task, Account account)
            : base(taskAction, task.Department, account)
        {
            var roleInTask = new RoleInTask(task, account, Role);
            Role = roleInTask.GetRole();
        }
    }
}